import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryDoublePreventList = async (json) => {
  let { data } = await axios.post(API_URL + "rDoublePreventApi/queryDoublePreventList", json);
  return data;
};



export const updateDoublePrevent = async (json) => {
  let { data } = await axios.post(API_URL + "rDoublePreventApi/updateDoublePrevent", json);
  return data;
};


export const addDoublePrevent = async (json) => {
  let { data } = await axios.post(API_URL + "rDoublePreventApi/addDoublePrevent", json);
  return data;
};



export const delDoublePrevent = async (json) => {
  let { data } = await axios.post(API_URL + "rDoublePreventApi/delDoublePrevent", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rDoublePreventApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}